﻿using System;
using System.Data;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;

namespace AnyOffice.general.meeting.apply
{
    public partial class delete : ModulePage
    {


        protected void Page_Load(object sender, EventArgs e)
        {
            int meetingId = (Request.QueryString["meeting_id"] != null) ? int.Parse(Request.QueryString["meeting_id"]) : 0;
            int num2 = (Request.QueryString["status"] != null) ? int.Parse(Request.QueryString["status"]) : 0;
            this.ViewState["Status"] = num2;
            ConfigManager manager = new ConfigManager();
            UserCache cache = new UserCache();
            bool isAdministrator = cache.PrivId == manager.AdministratorPrivId;
            new MeetingDao().Delete(base.Conn, meetingId, base.User.Identity.Name, isAdministrator);
            base.CloseConn();
            Response.Redirect("query.aspx?status=" + this.ViewState["Status"].ToString());
        }
 

    }
}
